package demo;

public class Cat extends Animal {

    public void say() { //(方法)重写
        System.out.println("我是猫");
    }

    public void say(String str) { //(方法)重载
        System.out.println("我是喵！" + str);
    }

}